<template>
  <div>
    <cascade-button :categoryData="categoryData"
                    :categorySelectData="categorySelectData"
                    @getResult="getResult"></cascade-button>
  </div>
</template>

<script>
import data from './data.json'
import selectData from './selectdata.json'
import cascadeButton from './cascade-button-component'
export default {
  name: 'HelloWorld',
  components: {
    cascadeButton
  },
  data () {
    return {
      categoryData: data.data,
      categorySelectData: selectData.data,
      result: []
    }
  },
  mounted () {
  },
  methods: {
    getResult (value) {
      this.result = value
      console.log(this.res)
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
</style>
